package cn.springcloud.fix.demo.design.factory.abstr;

import cn.springcloud.fix.demo.design.factory.Car;

public class FactoryTest extends AbstractFactory {

    private AudiFactory defaultFactory = new AudiFactory();

    public Car getCar() {
        return defaultFactory.getCar();
    }

    public static void main(String[] args) {
        FactoryTest factory = new FactoryTest();
        System.out.println(factory.getCar("Benz"));
    }
}
